﻿using System;
using LeopardAOP.Aspects;
using LeopardAOP.Sample.TestData;

namespace LeopardAOP.Sample.ExceptionHandling
{
    class PublicService : AspectDynamicMetaObjectProvider
    {
        public string SessionId { get; set; }

        public string ServiceName { get; set; }

        public uint Port { get; set; }

        [ExceptionHandlingAspect]
        public void Send(TestEntity entity)
        {
            throw new Exception();
        }
    }
}
